package com.niguang.work.api.enums;

import lombok.Getter;

/**
 * 整改单父级表单状态
 */
@Getter
public enum ContentApplyFlagEnum {

    WAIT_APPLY(1, "待审核"),

    NOT_REFORM(2, "无需整改"),

    WAIT_REFORM(3, "需整改"),

    WAIT_REVIEW(4, "待复查"),

    OK_APPLY(5, "已完成");

    private Integer index;

    private String desc;

    ContentApplyFlagEnum(Integer index, String desc) {
        this.index = index;
        this.desc = desc;
    }

    ContentApplyFlagEnum() {
    }


    public static String getName(Integer index) {
        for (ContentApplyFlagEnum c : ContentApplyFlagEnum.values()) {
            if (c.index.equals(index)) {
                return c.desc;
            }
        }
        return "";
    }
}
